export class Packet {
  isDuplicate: boolean = false;
  teamGuid: string;
  packetGuid: string;
  name: string;
  cover: string;
  enName: string;
  desc: string;
  publisher: string;
  authorGuid: string;
  creatorGuid: string;
  originGuid: string;
  isEdit: boolean = false;
  isModify: boolean = false;

  constructor(teamGuid: string, packetGuid: string, name: string, cover: string, enName: string, desc: string, publisher: string, authorGuid: string, creatorGuid: string, originGuid: string) {
    this.teamGuid = teamGuid;
    this.packetGuid = packetGuid;
    this.name = name;
    this.cover = cover;
    this.enName = enName;
    this.desc = desc;
    this.publisher = publisher;//发行机构
    this.authorGuid = authorGuid; //作者的Guid
    this.creatorGuid = creatorGuid;
    this.originGuid = originGuid; //有值就是副本  没有的就是母版
    if (this.originGuid) {
      this.isDuplicate = true;
    }
  }
}
